#include "poly.h"

int main(void)
{
	struct node_st *p1, *p2;
	int a[][2] = {{5, 0}, {2, 1}, {8, 8}, {3, 16}};
	int b[][2] = {{6, 1}, {16, 6}, {-8, 8}};
	p1 = poly_create(a, 4);
	if (p1 == NULL)
		exit(1);
	p2 = poly_create(b, 3);
	if (p2 == NULL)
		exit(1);
	poly_show(p1);
	poly_show(p2);

	poly_union(p1, p2);
	poly_show(p1);

	//poly_mul(p1, p2);
	
	return 0;
}